const mongoose = require("../db/config"),
    Schema = mongoose.Schema;

let user = new Schema({
    name: String,
    avatar: String,
    account: String,
    password: String,
    rooms: [{ type: Schema.Types.ObjectId, ref: "room" }]
});

module.exports = mongoose.model("user", user);
